/*用户信息接口*/
import request from "@/utils/request";

//获取当前登录用户的个人基本信息
export function getUser_Basic(data){
    return request({
        url:'/user/getUser_Basic',
        method:'post',
        data
    })
}

//签到  打卡
export function clockByUser(data){
    return request({
        url:'/user/clockByUser',
        method:'post',
        data
    })
}

//查询当前用户今天是否打卡
export function checkClock(data){
    return request({
        url:'/user/checkClock',
        method:'post',
        data
    })
}

//判断要查询的用户id是否为当前登录用户
export function judgeUser(data){
    return request({
        url:'/user/judgeUser',
        method:'post',
        data
    })
}

//获取当前登录用户的关注
export function getMyAttention(data){
    return request({
        url:'/user/getMyAttention',
        method:'post',
        data
    })
}

//取消关注
export function cancelAttention(data){
    return request({
        url:'/user/cancelAttention',
        method:'post',
        data
    })
}

//关注用户
export function attention(data){
    return request({
        url:'/user/attention',
        method:'post',
        data
    })
}

//修改当前登录用户的个人基本信息
export function updateUser_Basic(data){
    return request({
        url:'/user/updateUser_Basic',
        method:'post',
        data
    })
}

//获取当前登录用户的身份验证信息
export function getUser_Identity(data){
    return request({
        url:'/user/getUser_Identity',
        method:'post',
        data
    })
}

//修改当前登录用户的身份验证信息
export function updateUserIdentityByUser(data){
    return request({
        url:'/user/updateUserIdentityByUser',
        method:'post',
        data
    })
}

//获取当前登录用户的账号信息
export function getUser_Account(data){
    return request({
        url:'/user/getUser_Account',
        method:'post',
        data
    })
}

//修改当前登录用户的账号信息
export function updateUserAccountByUser(data){
    return request({
        url:'/user/updateUserAccountByUser',
        method:'post',
        data
    })
}

//注册
export function register(data){
    return request({
        url:'/login/register',
        method:'post',
        data
    })
}

//登录
export function userLogin(data){
    return request({
        url:'/login/userLogin',
        method:'post',
        data
    })
}

//获取关注情况
export function Attention_Info(data){
    return request({
        url:'/user/Attention_Info',
        method:'post',
        data
    })
}


//获取当前登录用户所有已签到的日期
export function getUserClockData(data){
    return request({
        url:'/user/getUserClockData',
        method:'post',
        data
    })
}

//获取积分排行榜
export function getUserCreditList(data){
    return request({
        url:'/user/getUserCreditList',
        method:'post',
        data
    })
}

//根据token获取用户id
export function getNowUserIdByToken(data){
    return request({
        url:'/user/getNowUserIdByToken',
        method:'post',
        data
    })
}



